import { createPersistedState } from "pinia-plugin-persistedstate";

export let pinia = createPinia();

pinia.use(
  //使用持久化插件
  createPersistedState({
    storage: localStorage, //存储位置为localStorage，默认为sessionStorage
  })
);

export * from "./modules/chatData";
export * from "./modules/generalData";
export * from "./modules/setting";
